//
//  SYDMessageCell.m
//  PinGJByOwnerSide
//
//  Created by lantaiyuan on 2017/8/16.
//  Copyright © 2017年 lantaiyuan. All rights reserved.
//

#import "SYDMessageCell.h"
@interface SYDMessageCell()
@property (weak, nonatomic) IBOutlet UIView *messageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *detailMessage;

@end
@implementation SYDMessageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self.messageView drawBorderWithColor:[UIColor colorWithHexString:@"#dddddd"] radius:3];
}
-(void)fullMessageWith:(SYDMessageModel *)model{
    
    self.titleLabel.text = [model.title isEqualToString:@""] ? @"系统消息":model.title;
    self.detailMessage.text = model.content;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
